package factory;

/**
 * 工厂建造
 * @author ItJianGe
 * @data 2024/7/18 17:43
 */
public class CreatFactory {
    public static AbstractFactory getFactory(String type) {
        return switch (type) {
            case "life" -> new LifeFactory();
            case "work" -> new WorkFactory();
            default -> null;
        };
    }
}
